//控制比例大小
(function() {
	var b = document.documentElement,
		a = function() {
			var a = b.getBoundingClientRect().width;
			b.style.fontSize = 0.0625 * (750 <= a ? 750 : a) + "px"
		},
		c = null;
	window.addEventListener("resize", function() {
		clearTimeout(c);
		c = setTimeout(a, 300)
	});
	a()
})();
//点击收藏或取消
function collect(e){
	if($(e).hasClass('hide')){
		$(e).removeClass('hide');	
	} else {
		$('.nav .right .collect img').removeClass('hide');
		$(e).addClass('hide');	
	}
}
//弹出框
function showOrder(){
	$('.mask').fadeIn();
	$('.orderbox').delay(1000).css('display','flex');
}
function cancelOrder(){
	$('.mask').fadeOut();
	$('.orderbox').fadeOut();
}
